package com.bw.a2209clubshop.mmkv

import com.bw.a2209clubshop.mmkv.utils.MMKVNullableProperty
import com.bw.a2209clubshop.mmkv.utils.MMKVOwner
import com.bw.a2209clubshop.mmkv.utils.MMKVProperty
import com.bw.a2209clubshop.ui.login.model.UserInfo
import com.tencent.mmkv.MMKV

object UserMMKV :MMKVOwner{
    //  MMKV实例 user文件中
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID("user")

    //是否绑定车辆
    var hasBindVehicle by MMKVProperty(false)
    var hasBindDevice by MMKVProperty(false)

    //用户信息
    var userInfo by MMKVNullableProperty(UserInfo::class.java)
}